package com.iweb.tmall.global;

        import lombok.Getter;

@Getter
public enum  ErrorEnum {
    INVALID_USERNAME("A0110", "无效的用户名"),
    INVALID_PASSWORD("10002", "无效的密码"),
    INVALID_ROLE("10003", "无效的身份"),
    NO_MORE_DATA("10004", "没有更多数据"),
    DATABASE_ERROR("10005", "数据库系统异常"),
    FILE_UPLOAD_EROOR("10006", "文件上次失败"),
    OPERATE_TOO_OFTEN("10007", "操作太频繁,请稍后重试"),
    SYSYTEM_ERROR("10008", "服务器系统异常"),
    INVALID_TOKEN("10009", "令牌异常"),
    LOGIN_ERROR("10010","请重新确认：用户名、密码和身份"),
    IDENTITY_VERIFICATION_FAILS("A0220", "用户身份校验失败"),
    DATABASE_SERVICE_ERROR("C0300", "数据库服务出错"),
    ACCOUNT_ALREADY_EXISTS("A0111", "用户名已存在"),
    PASSWORD_VERIFICATION_FAILD("A0120", "密码校验失败"),
    SYSTEM_EXECUTION_ERROR("B0001", "系统执行出错"),
    ACCOUNT_VERIFICATION_FAILD("A0220","用户验证错误"),
    Operation_Vailure("D0001","操作失败") ;

    private String code;
    private String message;

    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
